﻿using FalconSystemCatalogWebsite.ClassManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FalconSystemCatalogWebsite.Pages
{
    public partial class Stocks : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        public byte[] GetStockImage(object stockId)
        {
             SessionManager sessionManager = (SessionManager)HttpContext.Current.Session["SessionManager"];   

            FalconSystemCatalogWebsite.StockFilesManagerService.StockFilesManagerServiceClient stockFilesManagerServiceClient = new StockFilesManagerService.StockFilesManagerServiceClient();
            return stockFilesManagerServiceClient.GetStockImage(sessionManager.CompanyID, Convert.ToInt32(stockId));
        }
    }
}